<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../common/common_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="../../common/common_head.jsp"%>

<script>
	jQuery(document).ready(function() {
		jQuery("#formId").validationEngine({
			promptPosition : "centerRight"
		});
	});
</script>
</head>

<body>
	<form name="formId" id="formId" method="post" target="hid"
		action="ets/user/doAdd.do">
		<input type="hidden" name="userInfo.creator.userId" value="<s:property value='userInfo.userId' />" />
		<div class="right">
			<div class="righttext">
				<fieldset>
					<legend>新增用户信息</legend>
					<div>
						<table width="100%" border="0" cellspacing="0" class="tdtext">
							<tr>
								<td width="35%" align="right" valign="middle">授权角色：</td>
								<td width="30" colspan="2"><s:select list="results"
										name="userInfo.roleInfo.roleId" listKey="roleId"
										listValue="roleName" theme="simple"></s:select></td>
								<td width="35%">&nbsp;</td>
							</tr>
							<tr>
								<td align="right" valign="middle"><font color="red">*</font>用户名：</td>
								<td colspan="2"><input type="text" name="userInfo.userName"
									id="textfield8"
									class="textfieldone validate[required,ajax[ajaxUserCall]]" />
								</td>
								<td class="important">&nbsp;</td>
							</tr>
							<tr>
								<td align="right" valign="middle">默认密码：</td>
								<td colspan="2"><input name="userInfo.password"
									value="<s:property value='userInfo.password' />"
									readonly="readonly" type="text" class="textfieldone" /></td>
								<td></td>
							</tr>
							<tr>
								<td align="right" valign="middle">有效时间：</td>
								<td colspan="2"><input name="userInfo.validTime"
									type="text" class="textfieldone Wdate"
									onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen',minDate:'%y-%M-%d'});" />
								</td>
								<td></td>
							</tr>
							<tr>
								<td align="right" valign="middle">用户描述：</td>
								<td colspan="2"><span class="important"> <textarea
											name="userInfo.userDesc" id="textarea2" cols="45" rows="5"
											class="textfieldtwo"></textarea> </span></td>
								<td>&nbsp;</td>
							</tr>
						</table>
					</div>
					<hr />
					<div>

						<div class="footertext" align="center">
							<table>
								<tr>
									<td><a href="javascript:formId.submit();"
										onmouseout="MM_swapImgRestore()"
										onmouseover="MM_swapImage('Image1','','<%=request.getContextPath()%>/images/btnYesYes.png',1)"><img
											src="<%=request.getContextPath()%>/images/btnYes.png" name="Image1" width="107" height="34"
											border="0" id="Image1" /> </a></td>
									<td><a href="javascript:void(0);" onclick="closePopWindow();" onmouseout="MM_swapImgRestore()"
										onmouseover="MM_swapImage('Image2','','<%=request.getContextPath()%>/images/btnNoNo.png',1)"><img
											src="<%=request.getContextPath()%>/images/btnNo.png" name="Image2" width="107" height="34"
											border="0" id="Image2" /> </a></td>
								</tr>
							</table>
						</div>
					</div>
				</fieldset>
			</div>
		</div>
	</form>
	<!--隐藏域 Start -->
	<div style="display:none">
		<iframe name="hid" id="hid" src="" height="1px"></iframe>
	</div>
	<!--隐藏域 End   -->

</body>
</html>
